﻿@{
    ViewBag.Title = "会员充值";
    List<SelectListItem> paymenListItems = ViewBag.paymenListItems;
}
<form id="form1" url="RechargeSave" class="layui-form">
    @Html.AntiForgeryToken()
    <!--导航栏-->
    <div class="pageheader">
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <li><a href="../users/recharge_list" class="back"><i class="fa fa-mail-reply-all"></i> 返回列表页</a></li>
                <li><a href="javascript:;"><i class="iconfont icon-home1"></i> 首页</a> </li>
                <li><a href="javascript:;">充值记录</a> </li>
                <li><a href="javascript:;">会员充值</a> </li>
            </ul>
        </div>
    </div>
    <!--/导航栏-->
    <!--内容-->
    <div class="layui-fluid">
        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title" id="floatHead">
                <li class="layui-this">充值信息</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付方式</label>
                        <div class="layui-input-block">
                            @Html.DropDownList("payment_id", new SelectList(paymenListItems, "Value", "Text"), new { datatype = "*", errormsg = "请选择支付方式", sucmsg = " " })
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">用户名</label>
                        <div class="layui-input-block">
                            @Html.TextBox("user_name", ViewBag.UserName as string, new { @class = "input normal", datatype = "*2-100", sucmsg = " " })
                            <span class="Validform_checktip">*需要充值的会员用户名</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">订单号</label>
                        <div class="layui-input-block">
                            @Html.TextBox("recharge_no", ViewBag.RechargeNo as string, new { @class = "input normal", datatype = "*2-100", sucmsg = " " })
                            <span class="Validform_checktip">*系统随机生成订单号</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">充值金额</label>
                        <div class="layui-input-block">
                            @Html.TextBox("amount", 0, new { @class = "input small", datatype = @"/^-?(([1-9]{1}\d*)|([0]{1}))(\.(\d){1,2})?$/", sucmsg = " " })
                            <span class="Validform_checktip">*给该会员充值的金额，负数则扣减。</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--/内容-->
    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-wrap">
            <button class="layui-btn icon-btn" id="btnSubmit"><i class="layui-icon layui-icon-ok"></i>提交保存</button>
            <button class="layui-btn layui-btn-warm icon-btn" name="btnReturn" onclick="javascript:history.back(-1);"><i class="layui-icon layui-icon-return"></i>返回上一页</button>
        </div>
    </div>
    <!--/工具栏-->
</form>
@section Scripts{
    <script type="text/javascript">
        layui.use(['form', 'validform', 'element'], function () {
            //初始化表单验证
            $("#form1").initValidform('#btnSubmit', 1);
        });
    </script>
}